<?php 
/** Load header
*/
$this->load->view('header', $template) ;
?>
<link href='http://fonts.googleapis.com/css?family=Allura' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<?php echo base_url() ?>assets/css/home.css">
<!-- ---------------------------------------------------------- -->
	
	<section style="padding: 50px 0 30px 0">
		<div class="wrapper">
			<?php 
				foreach($list as $book) {
					echo '<figure class="book">';
					echo '<p class="title">'. $book['title']. '</p>';
					echo '<p class="author">Tác giả: &nbsp; '. $book['author'] .'</p>';
					echo '<p class="category"><i class="fa fa-briefcase"></i> &nbsp; '. $book['cat'] .'</p>';
					echo '<p class="uploader"><i class="fa fa-upload"></i> &nbsp; '. $book['uploader'];
					echo ' &nbsp; | &nbsp; <i class="fa fa-eye"></i> &nbsp; 123</p>';
					echo '<p class="more"><a href="' . base_url() .'book/info/' . $book['id'] .  
						'" title="">Đọc sách...</a></p>';
					echo '<div class="cover"><img src="'. $book['cover'] .'" alt=""></div>';
					echo '</figure>';
				}
			 ?>
			
		</div>
	</section>

<!-- ---------------------------------------------------------- -->

<?php
/** Load Footer
*/
$this->load->view('footer') ;
?>